/**
 * @author: Miss.杨
 * @date: 2025年1月12日 21:54:56
 * @description: 
 */
package com.sheepone.monitor.enums;

/**
 * @author: Miss.杨
 * @date: 2025年1月12日 21:54:56
 * @description:
 */
public enum SheeponePackageSourceEnum {
    MONITOR(0);

    private byte source;

    public byte getSource() {
        return source;
    }

    private SheeponePackageSourceEnum(int source) {
        this.source = (byte) source;
    }

    public static SheeponePackageSourceEnum convert(byte source) {
        for (SheeponePackageSourceEnum value : SheeponePackageSourceEnum.values()) {
            if (value.getSource() == source) {
                return value;
            }
        }
        return null;
    }

    public static boolean check(byte source) {
        for (SheeponePackageSourceEnum value : SheeponePackageSourceEnum.values()) {
            if (value.getSource() == source) {
                return true;
            }
        }
        return false;
    }
}
